package com.lh;

//import org.mybatis.spring.annotation.MapperScans;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

//import tk.mybatis.spring.annotation.MapperScan;
@SpringBootApplication
@MapperScan({"com.lh.dao", "com.lh.rights.mapper"})
public class SpringSecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringSecurityApplication.class);
    }

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        new PaginationInnerInterceptor();
        return new PaginationInterceptor();
    }
}
